-
Notifications
You must be signed in to change notification settings - Fork 118
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
fix: Do not add the image pull secret to the service IR if selected no authentication #929
fix: Do not add the image pull secret to the service IR if selected no authentication #929
Conversation
… existing pull secret Signed-off-by: Akash Nayak <akash19nayak@gmail.com>
Thanks for making a pull request! 😃 |
Codecov ReportBase: 15.34% // Head: 15.33% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #929 +/- ##
==========================================
- Coverage 15.34% 15.33% -0.02%
==========================================
Files 50 50
Lines 4581 4584 +3
==========================================
Hits 703 703
- Misses 3702 3705 +3
Partials 176 176
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
…se existing pull secret or docker credentials Signed-off-by: Akash Nayak <akash19nayak@gmail.com>
With apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
move2kube.konveyor.io/service: nodejs
name: nodejs
spec:
progressDeadlineSeconds: 600
replicas: 2
revisionHistoryLimit: 10
selector:
matchLabels:
move2kube.konveyor.io/service: nodejs
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
move2kube.konveyor.io/service: nodejs
name: nodejs
spec:
containers:
- image: quay.io/latest7/nodejs:latest
imagePullPolicy: Always
name: nodejs
ports:
- containerPort: 8080
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status: {} $ ls latest/deploy/yamls/
latest-ingress.yaml nodejs-deployment.yaml nodejs-service.yaml With apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
move2kube.konveyor.io/service: nodejs
name: nodejs
spec:
progressDeadlineSeconds: 600
replicas: 2
revisionHistoryLimit: 10
selector:
matchLabels:
move2kube.konveyor.io/service: nodejs
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
move2kube.konveyor.io/service: nodejs
name: nodejs
spec:
containers:
- image: quay.io/latest7/nodejs:latest
imagePullPolicy: Always
name: nodejs
ports:
- containerPort: 8080
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: all-icr-io
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status: {} $ ls latest1/deploy/yamls/
latest1-ingress.yaml nodejs-deployment.yaml nodejs-service.yaml With apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
move2kube.konveyor.io/service: nodejs
name: nodejs
spec:
progressDeadlineSeconds: 600
replicas: 2
revisionHistoryLimit: 10
selector:
matchLabels:
move2kube.konveyor.io/service: nodejs
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
move2kube.konveyor.io/service: nodejs
name: nodejs
spec:
containers:
- image: quay.io/latest7/nodejs:latest
imagePullPolicy: Always
name: nodejs
ports:
- containerPort: 8080
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: quay-io-imagepullsecret
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status: {} $ ls latest2/deploy/yamls/
latest2-ingress.yaml nodejs-service.yaml
nodejs-deployment.yaml quay-io-imagepullsecret-secret.yaml With apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
move2kube.konveyor.io/service: nodejs
name: nodejs
spec:
progressDeadlineSeconds: 600
replicas: 2
revisionHistoryLimit: 10
selector:
matchLabels:
move2kube.konveyor.io/service: nodejs
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
move2kube.konveyor.io/service: nodejs
name: nodejs
spec:
containers:
- image: quay.io/latest7/nodejs:latest
imagePullPolicy: Always
name: nodejs
ports:
- containerPort: 8080
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: quay-io-imagepullsecret
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status: {} $ ls latest3/deploy/yamls/
latest3-ingress.yaml nodejs-service.yaml
nodejs-deployment.yaml quay-io-imagepullsecret-secret.yaml |
…ected use existing pull secret or docker credentials Co-authored-by: Ashok Pon Kumar <ashokponkumar@gmail.com> Signed-off-by: Akash Nayak <akash19nayak@gmail.com>
Fixes #928
The generated deployment yaml when selected
no authentication
.The generated deployment yaml when selected
use an existing pull secret
and gaveall-icr-io
as the pull secret.Co-authored-by: Ashok Pon Kumar ashokponkumar@gmail.com
Signed-off-by: Akash Nayak akash19nayak@gmail.com