-
Couldn't load subscription status.
- Fork 175
Basic Kubescape support in Marketplace #520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Ben <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the long wait on this.
The deploy and uninstall scripts work fine, but the upgrade throws errors:
Error: UPGRADE FAILED: cannot patch "node-agent" with kind DaemonSet: DaemonSet.apps "node-agent" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"node-agent", "app.kubernetes.io/instance":"kubescape-operator", "app.kubernetes.io/name":"kubescape-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "kubescape" with kind Deployment: Deployment.apps "kubescape" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"kubescape", "app.kubernetes.io/instance":"kubescape-operator", "app.kubernetes.io/name":"kubescape-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "kubevuln" with kind Deployment: Deployment.apps "kubevuln" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"kubevuln", "app.kubernetes.io/instance":"kubescape-operator", "app.kubernetes.io/name":"kubescape-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "operator" with kind Deployment: Deployment.apps "operator" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"operator", "app.kubernetes.io/instance":"kubescape-operator", "app.kubernetes.io/name":"kubescape-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "storage" with kind Deployment: Deployment.apps "storage" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"storage", "app.kubernetes.io/instance":"kubescape-operator", "app.kubernetes.io/name":"kubescape-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
There is a deprecation warning on the initial deploy that might be related:
spec.template.metadata.annotations[container.apparmor.security.beta.kubernetes.io/node-agent]: deprecated since v1.30; use the "appArmorProfile" field instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there's still an error on upgrade:
Error: UPGRADE FAILED: cannot patch "node-agent" with kind DaemonSet: DaemonSet.apps "node-agent" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"node-agent", "app.kubernetes.io/instance":"kubescape-operator", "app.kubernetes.io/name":"kubescape-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "kubescape" with kind Deployment: Deployment.apps "kubescape" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"kubescape", "app.kubernetes.io/instance":"kubescape-operator", "app.kubernetes.io/name":"kubescape-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "kubevuln" with kind Deployment: Deployment.apps "kubevuln" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"kubevuln", "app.kubernetes.io/instance":"kubescape-operator", "app.kubernetes.io/name":"kubescape-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "operator" with kind Deployment: Deployment.apps "operator" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"operator", "app.kubernetes.io/instance":"kubescape-operator", "app.kubernetes.io/name":"kubescape-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "storage" with kind Deployment: Deployment.apps "storage" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"storage", "app.kubernetes.io/instance":"kubescape-operator", "app.kubernetes.io/name":"kubescape-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
|
Closing this PR due to inactivity. |
BACKGROUND
Changes
Checklist
Reviewer: @marketplace-eng